import api from "../../utils/request.js";
import {API1_URL} from '../../utils/baseURL.js'

export const getMeetList = async (params) => {
    const response = await api({
        url: API1_URL + "/meeting",
        method: 'get',
        params
    });
    return response.data;
};

export const deleteMeet = async (id) => {
    const response = await api({
        url: API1_URL + `/meeting/${id}`,
        method: 'delete',
    });
    return response.data;
};

export const getMeetByIdList = async (id) => {
    const response = await api({
        url: API1_URL + `/meeting/${id}`,
        method: 'get',
    });
    return response.data;
};

export const postMeet = async (data) => {
    const response = await api({
        url: API1_URL + "/meeting",
        method: 'post',
        data
    });
    return response.data;
};

export const putMeet = async (data) => {
    const response = await api({
        url: API1_URL + "/meeting",
        method: 'put',
        data
    });
    return response.data;
};